<# # It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description: The script provides information about available restore points on the system and creates a new restore point. # Parameters:"Restore Point Name" # Remarks: The script has to be deployed as Computer Configuration # Configuration Type - Computer #> $restorename = $args[0] Checkpoint-Computer -Description $restorename # Get the list of restore points $restorePoints = Get-ComputerRestorePoint Write-Host "$restorename Created Successfully" if ($restorePoints.Count -eq 0) { Write-Host "No restore points found on this system." } else { foreach ($point in $restorePoints) { Write-Host "Availble Restore Points in the Current Machines" Write-Host "Description: $($point.Description)" Write-Host "Sequence Number: $($point.SequenceNumber)" Write-Host "Creation Time: $($point.CreationTime)" } }